﻿using FluentNHibernate.Mapping;
using Sebrae.Academico.Trilhas.Dominio.Classes;

namespace Sebrae.Academico.Trilhas.BM.Mapeamentos
{

    public sealed class MatriculaProgramaMap : ClassMap<MatriculaPrograma>
    {
        /// <summary>
        /// Construtor.
        /// </summary>
        public MatriculaProgramaMap()
        {
            Table("TB_MATRICULAPROGRAMA");
            LazyLoad();
            Id(x => x.ID).GeneratedBy.Identity().Column("ID_MATRICULAPROGRAMA");
            References(x => x.Programa).Column("ID_PROGRAMA");
            References(x => x.Usuario).Column("ID_USUARIO");
        }
    }
}
